翻訳と辞書
Words near each other
・ Entity (netlabel)
・ Entity Abstraction Pattern
・ Entity Bean
・ Entity classification election
・ Entity component system
・ Entity concept
・ Entity Framework
・ Entity FX
・ Entity integrity
・ Entity linking
・ Entity Paradigm
・ Entity realism
・ Entity Registry
・ Entity-level controls
・ EntitySpaces
Entity–attribute–value model
・ Entity–relationship model
・ ENTJ
・ Entlassen auf Bewährung
・ Entlebuch
・ Entlebuch Biosphere
・ Entlebuch District
・ Entlebucher Mountain Dog
・ Entlerville, Pennsylvania
・ Entmemacornis
・ Entmemacornis proselytes
・ Entmemacornis pulla
・ Entner–Doudoroff pathway
・ Entobdella soleae
・ Entobia


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Entity–attribute–value model : ウィキペディア英語版
Entity–attribute–value model
Entity–attribute–value model (EAV) is a data model to describe entities where the number of attributes (properties, parameters) that can be used to describe them is potentially vast, but the number that will actually apply to a given entity is relatively modest. In mathematics, this model is known as a sparse matrix. EAV is also known as object–attribute–value model, vertical database model and open schema.
==Structure of an EAV table==
This data representation is analogous to space-efficient methods of storing a sparse matrix, where only non-empty values are stored. In an EAV data model, each attribute-value pair is a fact describing an entity, and a row in an EAV table stores a single fact. EAV tables are often described as "long and skinny": "long" refers to the number of rows, "skinny" to the few columns.
Data is recorded as three columns:
* The ''entity'': the item being described.
* The ''attribute'' or ''parameter'': a foreign key into a table of attribute definitions. At the very least, the attribute definitions table would contain the following columns: an attribute ID, attribute name, description, data type, and columns assisting input validation, e.g., maximum string length and regular expression, set of permissible values, etc.
* The ''value'' of the attribute.
Consider how one would try to represent a general-purpose clinical record in a relational database. Clearly creating a table (or a set of tables) with thousands of columns is not the way to go, because the vast majority of columns would be null. To complicate things, in a longitudinal medical record that follows the patient over time, there may be multiple values of the same parameter: the height and weight of a child, for example, change as the child grows. Finally, the universe of clinical findings keeps growing: for example, diseases emerge and new lab tests are devised; this would require constant addition of columns, and constant revision of the user interface. (The situation where the list of attributes changes frequently is termed "attribute volatility" in database parlance.)
The following shows a snapshot of an EAV table for clinical findings. The entries shown within angle brackets are references to entries in other tables, shown here as text rather than as encoded foreign key values for ease of understanding. They represent some details of a visit to a doctor for fever on the morning of 1/5/98. In this example, the values are all literal values, but these could also be foreign keys to pre-defined value lists; these are particularly useful when the possible values are known to be limited.
* The ''entity''. For clinical findings, the entity is the ''patient event'': a foreign key into a table that contains at a minimum a patient ID and one or more time-stamps (e.g., the start and end of the examination date/time) that record when the event being described happened.
* The ''attribute'' or ''parameter'': a foreign key into a table of attribute definitions (in this example, definitions of clinical findings). At the very least, the attribute definitions table would contain the following columns: an attribute ID, attribute name, description, data type, units of measurement, and columns assisting input validation, e.g., maximum string length and regular expression, maximum and minimum permissible values, set of permissible values, etc.
* The ''value'' of the attribute. This would depend on the data type, and we discuss how values are stored shortly.
The example below illustrates symptoms findings that might be seen in a patient with pneumonia.

(, , "102" )
(, , "True" )
(, , "With phlegm, yellowish, streaks of blood" )
(, , "98" )
...


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Entity–attribute–value model」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.